<?php

implode('..\vendor\aipfach\AipFace.php') ;

class FaceServer extends AipFace
{
    const APP_ID = '31773250';
    const API_KEY = '5afwGAz7yb2o1In6S9IvsGsV';
    const SECRET_KEY = 'f8a7hZSUGN9FYfDYI4o8DWYgROQb29sZ';

    protected $client;

    public function __construct()
    {
        return $this->client = new AipFace(self::APP_ID, self::API_KEY, self::SECRET_KEY);
    }

    public function dete($img)
    {
        return $this->client->detect($img,URL);
    }
}